package com.hspedu.homework.homework05;

public class Peasant extends Worker {
    public Peasant(String name, double salary) {
        super(name, salary);
    }

    @Override
    public void printSal() {
        System.out.println("农民" +  getName() + "年收入为" + getSalary() * 12);
    }

}
